export function defineArray(arr, methodName) {
    const arrayMethods = Object.create(Array.prototype);
    const original = arrayMethods[methodName];
    Object.defineProperty(arrayMethods, methodName, {
        enumerable: false,
        configurable: true,
        value(...args) {
            const result = original.apply(this, args);
            this.__ob__.dep.notify();
            return result;
        },
        writable: true,
    })
    Object.setPrototypeOf(arr, arrayMethods);
}